//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.qst.crop.service.impl;

import com.qst.crop.dao.SiteDao;
import com.qst.crop.entity.Site;
import com.qst.crop.service.SiteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SiteServiceImpl implements SiteService {
    @Autowired
    SiteDao siteDao;

    public SiteServiceImpl() {
    }

    public List<Site> getSiteList(String userName) {
        return this.siteDao.selectByPrimaryKey(userName);
    }

    public Integer insertSite(Site site) {
        return this.siteDao.insertSite(site);
    }

    public Integer updateSite(Site site) {
        return this.siteDao.updateByPrimaryKeySite(site);
    }

    public Integer deleteSite(Integer id) {
        return this.siteDao.deleteByPrimaryKey(id);
    }
}
